//导入请求工具
import request from "@/utils/request";

//发起获取品牌的数据接口
export const findBrand = (limit = 6) => {
  return request("/home/brand", "get", { limit: limit });
};

//发起获取轮播图的数据
export const findBanner = () => {
  return request("/home/banner", "get");
};

//发起获取面板新鲜好物的数据
export const findNew = () => {
  return request("home/new", "get");
};

//发起获取面板人气推荐数据
export const findHot = () => {
  return request("home/hot", "get");
};

export const findBrands = (limit = 10) => {
  return request("/home/brand", "get", { limit: limit });
};

// 发起商品区数据
export const findGoods = () => {
  return request("/home/goods", "get");
};

//发起最新专题数据请求
export const findSpecial = () => {
  return request("/home/special", "get");
};
